import request from "@/router/axios";

export const getTagList = (params) => {
  return request({
    url: "/admin/tag/list",
    method: "post",
    data: params,
  });
};
export const getTagIndexData = (params) => {
  return request({
    url: "/admin/tag/index",
    method: "post",
    data: params,
  });
};

export const getTagTypeList = (params) => {
  return request({
    url: "/admin/tag/typemap",
    method: "post",
    data: params,
  });
};


export const addTagItem = (row) => {
  return request({
    url: "/admin/tag/add",
    method: "post",
    data: row,
  });
};
export const updateTagItem = (row) => {
  return request({
    url: "/admin/tag/edit",
    method: "post",
    data: row,
  });
};
export const delTagItem = (row) => {
  return request({
    url: "/admin/tag/delete",
    method: "post",
    data: row,
  });
};
